package com.bw.ctroller;

import com.alibaba.fastjson2.JSONObject;
import com.bw.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class Ctroller {
    @Autowired
    Service service;
    @RequestMapping("/fpq")
    public Object fpq(){
        List<Map> kk = service.kk();
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("status", 0);
        jsonObject.put(  "msg", "");
        jsonObject.put(  "data",kk.get(0).get("ll"));
        return jsonObject;
    }
}
